package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcBillSetMealItemMapper;
import com.csun.cmny.provider.model.domain.OmcBillSetMealItem;
import com.csun.cmny.provider.service.OmcBillSetMealItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Slf4j
@Service
@Transactional
public class OmcBillSetMealItemServiceImpl extends BaseService<OmcBillSetMealItem> implements OmcBillSetMealItemService {

    @Resource
    private OmcBillSetMealItemMapper omcBillSetMealItemMapper;

    /**
     * 根据老人ID和项目ID查询套餐项目详情
     * @param oldManId
     * @param itemId
     * @return
     */
    @Override
    public OmcBillSetMealItem selectMealItem(Long oldManId, Long itemId) {
        return omcBillSetMealItemMapper.selectMealItem(oldManId,itemId);
    }
}
